package com.ujiuye.service;

import com.ujiuye.dao.UserDao;
import com.ujiuye.enity.User;

public class UserService {
    UserDao ud = new UserDao();

    //注册方法-->添加
    public boolean addUser(User u) {
        return ud.addUser(u) > 0 ? true : false;
    }

    //登录
    public User login(String username, String pwd) {
       return  ud.login(username, pwd);
    }
}
